home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
RA_250R.ZIP
/
AVTCONV.ZIP
/
AVTCONV.DOC
next >
Wrap
Text File
|
1991-10-25
|
6KB
|
144 lines
┌──────────────────────────────────────────────────────────────┐
│ RemoteAccess Avatar Conversion Utility version 1.01 │
│ copyright (c) S/e/m/a/j Communications. │
└──────────────────────────────────────────────────────────────┘
The RemoteAccess Avatar Conversion utility, or AVTCONV, will convert
your existing ansi (.ANS) screens into Avatar (.AVT) screens suitable
for use with RemoteAccess 1.10.
Conversion of screens into Avatar is always possible, but not always
easy. If ANVCONV says that a screen cannot be converted, then you should
load the screen into TheDraw, or similar ANSI drawing package, and
resave it with no line length limit.
Screens containing RemoteAccess control codes may need special care.
What AVTCONV does
─────────────────
For the technically minded, AVTCONV directly translates the following
ANSI control codes:
ESC [ ... H direct cursor movement
ESC [ ... f direct cursor movement
ESC [ 2 J clear screen
ESC [ K erase line
ESC [ ... m set graphics rendition.
AVTCONV handles the following control codes in a special way:
ESC [ ... A relative cursor movement
ESC [ ... B relative cursor movement
ESC [ ... C relative cursor movement
ESC [ ... D relative cursor movement
ESC [ s save cursor position
ESC [ u restore cursor position
Since the AVATAR control codes do not allow easy multiple cursor movements
in any direction, and for speed, AVTCONV replaces relative cursor movements
with a direct cursor movement. If AVTCONV is not sure of it's
position, or, there are less than two cursor movements in a row, it is
more efficient to use repeated relative cursor movements, so that's what
it does.
If AVTCONV knows where it is on the screen, it strips the save cursor
position command, and replaces the restore cursor position command with
a goto cursor position command. If it encounters these commands and it
doesn't know where you are on the screen, it reports that the file cannot
be converted.
Additionally, AVTCONV automatically scans for repeated characters and
reduces them to an Avatar "repeat character" sequence if this would be
more efficient (byte-wise). Lastly, if enabled, AVTCONV can compress
the file even further using advanced pattern recognition features.
Unfortuately, at the moment, hardly any comms packages support pattern
expansion which contains avatar codes, so, this compression is not selected
by default. Besides which, the scanning mechanism is slow!
How to use AVTCONV
──────────────────
With this release of AVTCONV, a number of switches have been provided to allow
greater flexibility, and speed.
Options should be specified on the command line. They can be preceeded by
either a "/" or a "-". Most of the options are "toggles". You should
append either a "+" or "-" to turn on or off the option respectively. If
you don't specify either, then the option is turned on.
eg. AVTCONV /o- /c /a+ /x95
Would turn off cursor optimisation, AVT/0+ compression on,
animation delays on and sets the screen width to 95.
The default for each of the
/o Cursor optimisation.
(active) When on, AVTCONV will scan through your file removing
redundant save/restore cursor position commands, to
further decrease the size of the AVT file.
/c AVT/0+ compression.
(off) Although RemoteAccess supports AVT/0+ compression,
many communications programs do not. Even FrontDoor
v2.00 has problems with this compression, so its
probably not a good idea to use this until more
programs support AVT/0+. Basically, this option
enables a pattern recognition search, further
decreasing the size of your AVT file. Unfortunately,
this is very slow, but I hope to speed it up in
a future version.
/r RLE compression.
(on) This is simple data compression supported by all
Avatar compatible communications packages. There
should be no reason to turn it off, but you can
if you like...!
/a Animation delays.
(off) Normally, AVTCONV ignores the delays put into
animation by programs such as TheDraw, but when
this option is specified, these delays are
included.
/x Screen width.
(80) Follow this command by width of your screen. There
should be no reason to alter it from 80, but
just in case..
/y Screen height.
(25) This option should be followed by the height of your
screen. See screen width for more information.
To run AVTCONV, simply type..
AvtConv [options] [path] [ext]
where,
path is the path to the files you want to convert (eg \RA\TXT\*.ANS),
the default is *.ANS
ext is the extension to put on the new files, the default is AVT.
Examples of use:
AVTCONV
will convert *.ANS in the current directory to .AVT files.
AVTCONV /c- C:\RA\TXTFILES\*.ANS AKK
will convert *.ANS in the ra textfiles directory to .AKK files without
cursor optimisation.
AVTCONV \*.ANS /r-
will convert *.ANS in the root directory to .AVT files, with RLE
compression off.